package gdou.gym.entity;

import java.util.ArrayList;
import java.util.List;

public class OrderViewExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderViewExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrderNoIsNull() {
            addCriterion("order_no is null");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNotNull() {
            addCriterion("order_no is not null");
            return (Criteria) this;
        }

        public Criteria andOrderNoEqualTo(String value) {
            addCriterion("order_no =", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotEqualTo(String value) {
            addCriterion("order_no <>", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThan(String value) {
            addCriterion("order_no >", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThanOrEqualTo(String value) {
            addCriterion("order_no >=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThan(String value) {
            addCriterion("order_no <", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThanOrEqualTo(String value) {
            addCriterion("order_no <=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLike(String value) {
            addCriterion("order_no like", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotLike(String value) {
            addCriterion("order_no not like", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoIn(List<String> values) {
            addCriterion("order_no in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotIn(List<String> values) {
            addCriterion("order_no not in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoBetween(String value1, String value2) {
            addCriterion("order_no between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotBetween(String value1, String value2) {
            addCriterion("order_no not between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderTimeIsNull() {
            addCriterion("order_time is null");
            return (Criteria) this;
        }

        public Criteria andOrderTimeIsNotNull() {
            addCriterion("order_time is not null");
            return (Criteria) this;
        }

        public Criteria andOrderTimeEqualTo(String value) {
            addCriterion("order_time =", value, "orderTime");
            return (Criteria) this;
        }

        public Criteria andOrderTimeNotEqualTo(String value) {
            addCriterion("order_time <>", value, "orderTime");
            return (Criteria) this;
        }

        public Criteria andOrderTimeGreaterThan(String value) {
            addCriterion("order_time >", value, "orderTime");
            return (Criteria) this;
        }

        public Criteria andOrderTimeGreaterThanOrEqualTo(String value) {
            addCriterion("order_time >=", value, "orderTime");
            return (Criteria) this;
        }

        public Criteria andOrderTimeLessThan(String value) {
            addCriterion("order_time <", value, "orderTime");
            return (Criteria) this;
        }

        public Criteria andOrderTimeLessThanOrEqualTo(String value) {
            addCriterion("order_time <=", value, "orderTime");
            return (Criteria) this;
        }

        public Criteria andOrderTimeLike(String value) {
            addCriterion("order_time like", value, "orderTime");
            return (Criteria) this;
        }

        public Criteria andOrderTimeNotLike(String value) {
            addCriterion("order_time not like", value, "orderTime");
            return (Criteria) this;
        }

        public Criteria andOrderTimeIn(List<String> values) {
            addCriterion("order_time in", values, "orderTime");
            return (Criteria) this;
        }

        public Criteria andOrderTimeNotIn(List<String> values) {
            addCriterion("order_time not in", values, "orderTime");
            return (Criteria) this;
        }

        public Criteria andOrderTimeBetween(String value1, String value2) {
            addCriterion("order_time between", value1, value2, "orderTime");
            return (Criteria) this;
        }

        public Criteria andOrderTimeNotBetween(String value1, String value2) {
            addCriterion("order_time not between", value1, value2, "orderTime");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNoIsNull() {
            addCriterion("order_space_no is null");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNoIsNotNull() {
            addCriterion("order_space_no is not null");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNoEqualTo(String value) {
            addCriterion("order_space_no =", value, "orderSpaceNo");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNoNotEqualTo(String value) {
            addCriterion("order_space_no <>", value, "orderSpaceNo");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNoGreaterThan(String value) {
            addCriterion("order_space_no >", value, "orderSpaceNo");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNoGreaterThanOrEqualTo(String value) {
            addCriterion("order_space_no >=", value, "orderSpaceNo");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNoLessThan(String value) {
            addCriterion("order_space_no <", value, "orderSpaceNo");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNoLessThanOrEqualTo(String value) {
            addCriterion("order_space_no <=", value, "orderSpaceNo");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNoLike(String value) {
            addCriterion("order_space_no like", value, "orderSpaceNo");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNoNotLike(String value) {
            addCriterion("order_space_no not like", value, "orderSpaceNo");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNoIn(List<String> values) {
            addCriterion("order_space_no in", values, "orderSpaceNo");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNoNotIn(List<String> values) {
            addCriterion("order_space_no not in", values, "orderSpaceNo");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNoBetween(String value1, String value2) {
            addCriterion("order_space_no between", value1, value2, "orderSpaceNo");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNoNotBetween(String value1, String value2) {
            addCriterion("order_space_no not between", value1, value2, "orderSpaceNo");
            return (Criteria) this;
        }

        public Criteria andOrderAccountIsNull() {
            addCriterion("order_account is null");
            return (Criteria) this;
        }

        public Criteria andOrderAccountIsNotNull() {
            addCriterion("order_account is not null");
            return (Criteria) this;
        }

        public Criteria andOrderAccountEqualTo(String value) {
            addCriterion("order_account =", value, "orderAccount");
            return (Criteria) this;
        }

        public Criteria andOrderAccountNotEqualTo(String value) {
            addCriterion("order_account <>", value, "orderAccount");
            return (Criteria) this;
        }

        public Criteria andOrderAccountGreaterThan(String value) {
            addCriterion("order_account >", value, "orderAccount");
            return (Criteria) this;
        }

        public Criteria andOrderAccountGreaterThanOrEqualTo(String value) {
            addCriterion("order_account >=", value, "orderAccount");
            return (Criteria) this;
        }

        public Criteria andOrderAccountLessThan(String value) {
            addCriterion("order_account <", value, "orderAccount");
            return (Criteria) this;
        }

        public Criteria andOrderAccountLessThanOrEqualTo(String value) {
            addCriterion("order_account <=", value, "orderAccount");
            return (Criteria) this;
        }

        public Criteria andOrderAccountLike(String value) {
            addCriterion("order_account like", value, "orderAccount");
            return (Criteria) this;
        }

        public Criteria andOrderAccountNotLike(String value) {
            addCriterion("order_account not like", value, "orderAccount");
            return (Criteria) this;
        }

        public Criteria andOrderAccountIn(List<String> values) {
            addCriterion("order_account in", values, "orderAccount");
            return (Criteria) this;
        }

        public Criteria andOrderAccountNotIn(List<String> values) {
            addCriterion("order_account not in", values, "orderAccount");
            return (Criteria) this;
        }

        public Criteria andOrderAccountBetween(String value1, String value2) {
            addCriterion("order_account between", value1, value2, "orderAccount");
            return (Criteria) this;
        }

        public Criteria andOrderAccountNotBetween(String value1, String value2) {
            addCriterion("order_account not between", value1, value2, "orderAccount");
            return (Criteria) this;
        }

        public Criteria andOrderCostIsNull() {
            addCriterion("order_cost is null");
            return (Criteria) this;
        }

        public Criteria andOrderCostIsNotNull() {
            addCriterion("order_cost is not null");
            return (Criteria) this;
        }

        public Criteria andOrderCostEqualTo(Double value) {
            addCriterion("order_cost =", value, "orderCost");
            return (Criteria) this;
        }

        public Criteria andOrderCostNotEqualTo(Double value) {
            addCriterion("order_cost <>", value, "orderCost");
            return (Criteria) this;
        }

        public Criteria andOrderCostGreaterThan(Double value) {
            addCriterion("order_cost >", value, "orderCost");
            return (Criteria) this;
        }

        public Criteria andOrderCostGreaterThanOrEqualTo(Double value) {
            addCriterion("order_cost >=", value, "orderCost");
            return (Criteria) this;
        }

        public Criteria andOrderCostLessThan(Double value) {
            addCriterion("order_cost <", value, "orderCost");
            return (Criteria) this;
        }

        public Criteria andOrderCostLessThanOrEqualTo(Double value) {
            addCriterion("order_cost <=", value, "orderCost");
            return (Criteria) this;
        }

        public Criteria andOrderCostIn(List<Double> values) {
            addCriterion("order_cost in", values, "orderCost");
            return (Criteria) this;
        }

        public Criteria andOrderCostNotIn(List<Double> values) {
            addCriterion("order_cost not in", values, "orderCost");
            return (Criteria) this;
        }

        public Criteria andOrderCostBetween(Double value1, Double value2) {
            addCriterion("order_cost between", value1, value2, "orderCost");
            return (Criteria) this;
        }

        public Criteria andOrderCostNotBetween(Double value1, Double value2) {
            addCriterion("order_cost not between", value1, value2, "orderCost");
            return (Criteria) this;
        }

        public Criteria andOrderUserNameIsNull() {
            addCriterion("order_user_name is null");
            return (Criteria) this;
        }

        public Criteria andOrderUserNameIsNotNull() {
            addCriterion("order_user_name is not null");
            return (Criteria) this;
        }

        public Criteria andOrderUserNameEqualTo(String value) {
            addCriterion("order_user_name =", value, "orderUserName");
            return (Criteria) this;
        }

        public Criteria andOrderUserNameNotEqualTo(String value) {
            addCriterion("order_user_name <>", value, "orderUserName");
            return (Criteria) this;
        }

        public Criteria andOrderUserNameGreaterThan(String value) {
            addCriterion("order_user_name >", value, "orderUserName");
            return (Criteria) this;
        }

        public Criteria andOrderUserNameGreaterThanOrEqualTo(String value) {
            addCriterion("order_user_name >=", value, "orderUserName");
            return (Criteria) this;
        }

        public Criteria andOrderUserNameLessThan(String value) {
            addCriterion("order_user_name <", value, "orderUserName");
            return (Criteria) this;
        }

        public Criteria andOrderUserNameLessThanOrEqualTo(String value) {
            addCriterion("order_user_name <=", value, "orderUserName");
            return (Criteria) this;
        }

        public Criteria andOrderUserNameLike(String value) {
            addCriterion("order_user_name like", value, "orderUserName");
            return (Criteria) this;
        }

        public Criteria andOrderUserNameNotLike(String value) {
            addCriterion("order_user_name not like", value, "orderUserName");
            return (Criteria) this;
        }

        public Criteria andOrderUserNameIn(List<String> values) {
            addCriterion("order_user_name in", values, "orderUserName");
            return (Criteria) this;
        }

        public Criteria andOrderUserNameNotIn(List<String> values) {
            addCriterion("order_user_name not in", values, "orderUserName");
            return (Criteria) this;
        }

        public Criteria andOrderUserNameBetween(String value1, String value2) {
            addCriterion("order_user_name between", value1, value2, "orderUserName");
            return (Criteria) this;
        }

        public Criteria andOrderUserNameNotBetween(String value1, String value2) {
            addCriterion("order_user_name not between", value1, value2, "orderUserName");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceSiteIsNull() {
            addCriterion("order_space_site is null");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceSiteIsNotNull() {
            addCriterion("order_space_site is not null");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceSiteEqualTo(String value) {
            addCriterion("order_space_site =", value, "orderSpaceSite");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceSiteNotEqualTo(String value) {
            addCriterion("order_space_site <>", value, "orderSpaceSite");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceSiteGreaterThan(String value) {
            addCriterion("order_space_site >", value, "orderSpaceSite");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceSiteGreaterThanOrEqualTo(String value) {
            addCriterion("order_space_site >=", value, "orderSpaceSite");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceSiteLessThan(String value) {
            addCriterion("order_space_site <", value, "orderSpaceSite");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceSiteLessThanOrEqualTo(String value) {
            addCriterion("order_space_site <=", value, "orderSpaceSite");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceSiteLike(String value) {
            addCriterion("order_space_site like", value, "orderSpaceSite");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceSiteNotLike(String value) {
            addCriterion("order_space_site not like", value, "orderSpaceSite");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceSiteIn(List<String> values) {
            addCriterion("order_space_site in", values, "orderSpaceSite");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceSiteNotIn(List<String> values) {
            addCriterion("order_space_site not in", values, "orderSpaceSite");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceSiteBetween(String value1, String value2) {
            addCriterion("order_space_site between", value1, value2, "orderSpaceSite");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceSiteNotBetween(String value1, String value2) {
            addCriterion("order_space_site not between", value1, value2, "orderSpaceSite");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNameIsNull() {
            addCriterion("order_space_name is null");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNameIsNotNull() {
            addCriterion("order_space_name is not null");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNameEqualTo(String value) {
            addCriterion("order_space_name =", value, "orderSpaceName");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNameNotEqualTo(String value) {
            addCriterion("order_space_name <>", value, "orderSpaceName");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNameGreaterThan(String value) {
            addCriterion("order_space_name >", value, "orderSpaceName");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNameGreaterThanOrEqualTo(String value) {
            addCriterion("order_space_name >=", value, "orderSpaceName");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNameLessThan(String value) {
            addCriterion("order_space_name <", value, "orderSpaceName");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNameLessThanOrEqualTo(String value) {
            addCriterion("order_space_name <=", value, "orderSpaceName");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNameLike(String value) {
            addCriterion("order_space_name like", value, "orderSpaceName");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNameNotLike(String value) {
            addCriterion("order_space_name not like", value, "orderSpaceName");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNameIn(List<String> values) {
            addCriterion("order_space_name in", values, "orderSpaceName");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNameNotIn(List<String> values) {
            addCriterion("order_space_name not in", values, "orderSpaceName");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNameBetween(String value1, String value2) {
            addCriterion("order_space_name between", value1, value2, "orderSpaceName");
            return (Criteria) this;
        }

        public Criteria andOrderSpaceNameNotBetween(String value1, String value2) {
            addCriterion("order_space_name not between", value1, value2, "orderSpaceName");
            return (Criteria) this;
        }

        public Criteria andOrderDataIsNull() {
            addCriterion("order_data is null");
            return (Criteria) this;
        }

        public Criteria andOrderDataIsNotNull() {
            addCriterion("order_data is not null");
            return (Criteria) this;
        }

        public Criteria andOrderDataEqualTo(String value) {
            addCriterion("order_data =", value, "orderData");
            return (Criteria) this;
        }

        public Criteria andOrderDataNotEqualTo(String value) {
            addCriterion("order_data <>", value, "orderData");
            return (Criteria) this;
        }

        public Criteria andOrderDataGreaterThan(String value) {
            addCriterion("order_data >", value, "orderData");
            return (Criteria) this;
        }

        public Criteria andOrderDataGreaterThanOrEqualTo(String value) {
            addCriterion("order_data >=", value, "orderData");
            return (Criteria) this;
        }

        public Criteria andOrderDataLessThan(String value) {
            addCriterion("order_data <", value, "orderData");
            return (Criteria) this;
        }

        public Criteria andOrderDataLessThanOrEqualTo(String value) {
            addCriterion("order_data <=", value, "orderData");
            return (Criteria) this;
        }

        public Criteria andOrderDataLike(String value) {
            addCriterion("order_data like", value, "orderData");
            return (Criteria) this;
        }

        public Criteria andOrderDataNotLike(String value) {
            addCriterion("order_data not like", value, "orderData");
            return (Criteria) this;
        }

        public Criteria andOrderDataIn(List<String> values) {
            addCriterion("order_data in", values, "orderData");
            return (Criteria) this;
        }

        public Criteria andOrderDataNotIn(List<String> values) {
            addCriterion("order_data not in", values, "orderData");
            return (Criteria) this;
        }

        public Criteria andOrderDataBetween(String value1, String value2) {
            addCriterion("order_data between", value1, value2, "orderData");
            return (Criteria) this;
        }

        public Criteria andOrderDataNotBetween(String value1, String value2) {
            addCriterion("order_data not between", value1, value2, "orderData");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Boolean value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Boolean value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Boolean value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Boolean value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Boolean value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Boolean value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Boolean> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Boolean> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Boolean value1, Boolean value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Boolean value1, Boolean value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}